// hostsDlg.h : header file
//

#if !defined(AFX_HOSTSDLG_H__CA4ECC0F_B873_42D7_A486_9796038E1699__INCLUDED_)
#define AFX_HOSTSDLG_H__CA4ECC0F_B873_42D7_A486_9796038E1699__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


UINT *workcallback(LPVOID);

/////////////////////////////////////////////////////////////////////////////
// CHostsDlg dialog

class CProcessThread;

class CHostsDlg : public CDialog
{
// Construction
public:
    CHostsDlg(CWnd* pParent = NULL);	// standard constructor
	virtual ~CHostsDlg();

// Dialog Data
	//{{AFX_DATA(CHostsDlg)
	enum { IDD = IDD_HOSTS_DIALOG };
	CButton	m_nslookup;
	CStatic	m_status;
	CProgressCtrl	m_progress;
	CEdit	m_output;
	CEdit	m_input;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHostsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL


public:
    void Run();

private:
    CString GetHost(const CString& hostname);


// Implementation
protected:
	HICON m_hIcon;
    

	// Generated message map functions
	//{{AFX_MSG(CHostsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnNslookup();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.



#endif // !defined(AFX_HOSTSDLG_H__CA4ECC0F_B873_42D7_A486_9796038E1699__INCLUDED_)
